import 'package:flutter/material.dart';

/// 水平间隔
const Widget hGap1 = SizedBox(width: 1.0);
const Widget hGap2 = SizedBox(width: 2.0);
const Widget hGap3 = SizedBox(width: 3.0);
const Widget hGap4 = SizedBox(width: 4.0);
const Widget hGap5 = SizedBox(width: 5.0);
const Widget hGap6 = SizedBox(width: 6.0);
const Widget hGap7 = SizedBox(width: 7.0);
const Widget hGap8 = SizedBox(width: 8.0);
const Widget hGap9 = SizedBox(width: 9.0);
const Widget hGap10 = SizedBox(width: 10.0);
const Widget hGap11 = SizedBox(width: 11.0);
const Widget hGap12 = SizedBox(width: 12.0);
const Widget hGap13 = SizedBox(width: 13.0);
const Widget hGap14 = SizedBox(width: 14.0);
const Widget hGap15 = SizedBox(width: 15.0);
const Widget hGap16 = SizedBox(width: 16.0);
const Widget hGap17 = SizedBox(width: 17.0);
const Widget hGap18 = SizedBox(width: 18.0);
const Widget hGap19 = SizedBox(width: 19.0);
const Widget hGap20 = SizedBox(width: 20.0);
const Widget hGap21 = SizedBox(width: 21.0);
const Widget hGap22 = SizedBox(width: 22.0);
const Widget hGap23 = SizedBox(width: 23.0);
const Widget hGap24 = SizedBox(width: 24.0);
const Widget hGap25 = SizedBox(width: 25.0);
const Widget hGap30 = SizedBox(width: 30.0);
const Widget hGap32 = SizedBox(width: 32.0);
const Widget hGap35 = SizedBox(width: 35.0);
const Widget hGap40 = SizedBox(width: 40.0);
const Widget hGap45 = SizedBox(width: 45.0);
const Widget hGap50 = SizedBox(width: 50.0);
const Widget hGap55 = SizedBox(width: 55.0);
const Widget hGap60 = SizedBox(width: 60.0);
const Widget hGap65 = SizedBox(width: 65.0);
const Widget hGap110 = SizedBox(width: 110.0);

/// 垂直间隔
const Widget vGap1 = SizedBox(height: 1.0);
const Widget vGap2 = SizedBox(height: 2.0);
const Widget vGap3 = SizedBox(height: 3.0);
const Widget vGap4 = SizedBox(height: 4.0);
const Widget vGap5 = SizedBox(height: 5.0);
const Widget vGap6 = SizedBox(height: 6.0);
const Widget vGap7 = SizedBox(height: 7.0);
const Widget vGap8 = SizedBox(height: 8.0);
const Widget vGap9 = SizedBox(height: 9.0);
const Widget vGap10 = SizedBox(height: 10.0);
const Widget vGap11 = SizedBox(height: 11.0);
const Widget vGap12 = SizedBox(height: 12.0);
const Widget vGap13 = SizedBox(height: 13.0);
const Widget vGap14 = SizedBox(height: 14.0);
const Widget vGap15 = SizedBox(height: 15.0);
const Widget vGap16 = SizedBox(height: 16.0);
const Widget vGap17 = SizedBox(height: 17.0);
const Widget vGap18 = SizedBox(height: 18.0);
const Widget vGap19 = SizedBox(height: 19.0);
const Widget vGap20 = SizedBox(height: 20.0);
const Widget vGap21 = SizedBox(height: 21.0);
const Widget vGap22 = SizedBox(height: 22.0);
const Widget vGap23 = SizedBox(height: 23.0);
const Widget vGap24 = SizedBox(height: 24.0);
const Widget vGap25 = SizedBox(height: 25.0);
const Widget vGap26 = SizedBox(height: 26.0);
const Widget vGap27 = SizedBox(height: 27.0);
const Widget vGap28 = SizedBox(height: 28.0);
const Widget vGap29 = SizedBox(height: 29.0);
const Widget vGap30 = SizedBox(height: 30.0);
const Widget vGap32 = SizedBox(height: 32.0);
const Widget vGap35 = SizedBox(height: 35.0);
const Widget vGap40 = SizedBox(height: 40.0);
const Widget vGap50 = SizedBox(height: 50.0);
const Widget vGap55 = SizedBox(height: 55.0);
const Widget vGap60 = SizedBox(height: 60.0);
const Widget vGap65 = SizedBox(height: 65.0);
const Widget vGap70 = SizedBox(height: 70.0);
const Widget vGap75 = SizedBox(height: 75.0);
const Widget vGap80 = SizedBox(height: 80.0);
const Widget vGap85 = SizedBox(height: 85.0);
const Widget vGap90 = SizedBox(height: 90.0);
const Widget vGap95 = SizedBox(height: 95.0);
const Widget vGap100 = SizedBox(height: 100.0);
const Widget vGap110 = SizedBox(height: 110.0);
const Widget vGap120 = SizedBox(height: 120.0);
const Widget vGap130 = SizedBox(height: 130.0);
const Widget vGap140 = SizedBox(height: 140.0);
const Widget vGap150 = SizedBox(height: 150.0);

Widget line({height = 1.0, Color? color}) =>
    Divider(height: height, color: color, thickness: height);

Widget vLine({double? width, double? height, Color? color}) => SizedBox(
      width: width ?? 1.0,
      height: height ?? 24.0,
      child: VerticalDivider(
          width: width ?? 1.0, thickness: width ?? 1.0, color: color),
    );

const Widget empty = SizedBox.shrink();
